#!/bin/bash

# Set the path to the folder containing the PBS scripts
folder_path="pbs_scripts"

# Iterate over the files in the folder with subscripts starting from 11
for i in {11..100}; do
    script_file="$folder_path/QAP_followers_$i.pbs"
    # Check if the script file exists before submitting
    if [ -f "$script_file" ]; then
        # Submit each script individually
        qsub -A open "$script_file"
    else
        echo "Script file $script_file not found."
    fi
done
